﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Besture.Bll;
using Besture.Common;
using Besture.Model;

namespace Besture.UI.Portal.FindUserPwd
{
    public partial class EmailFindTwo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitData();
            }
        }

        /// <summary>
        /// 初始化数据
        /// </summary>
        private void InitData()
        {
            UserBaseModel userBaseModel = new UserBaseDac().GetModel(Convert.ToInt32(EncryptHelper.Decrypt(StringHelper.Query("user"))));
            email.InnerText = userBaseModel.Email.Replace(userBaseModel.Email.Substring(3, userBaseModel.Email.IndexOf('@') - 6), "****");
            ClientScript.RegisterStartupScript(this.GetType(), "", "sendemail()", true);

        }
    }
}